---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-3-fb705c3a7f73> in <module>()
3 Y = [5,6,1]
4
----> 5 X, Y = generate_data(ran=5)
6 plt.plot(X, Y, label='Graph')
7
<ipython-input-2-bd8dc118fcdf> in generate_data(x, ran)
1 def generate_data(x=10,ran=9):
2 raw = (randint(0,ran) for _ in range(x))
----> 3 return zip(*enumerate(raw))
<ipython-input-2-bd8dc118fcdf> in <genexpr>(.0)
1 def generate_data(x=10,ran=9):
----> 2 raw = (randint(0,ran) for _ in range(x))
3 return zip(*enumerate(raw))
NameError: name 'randint' is not defined